package com.xsh.subsynth;

// 重构完成之前暂时不要删除
public class EnvBackup
{
    enum volEnv {A,D,S,R};
    enum waveType{ SINE, SAWTOOTH, TRAN};//SQUARE 方波生成会崩溃
    /*
    SeekBar.OnSeekBarChangeListener volEnvChangeListener = new SeekBar.OnSeekBarChangeListener()
    {

        @Override
        public void onProgressChanged(SeekBar seekBar, int i, boolean b)
        {
            // 百分比 *最大值=当前值
            if(seekBar.getId()==R.id.osc3VolEnvA)
            {
                changeVolEnv(volEnv.A.ordinal(),i/100.0f);
            }
            else if(seekBar.getId()==R.id.osc3VolEnvD)
            {
                changeVolEnv(volEnv.D.ordinal(),i/100.0f);
            }
            else if(seekBar.getId()==R.id.osc3VolEnvS)
            {
                changeVolEnv(volEnv.S.ordinal(),i/100.0f);
            }
            else if(seekBar.getId()==R.id.osc3VolEnvR)
            {
                changeVolEnv(volEnv.R.ordinal(),i/100.0f);
            }
           // tv.setText("Env::value: " + i);
        }

        @Override
        public void onStartTrackingTouch(SeekBar seekBar)
        {

        }

        @Override
        public void onStopTrackingTouch(SeekBar seekBar)
        {

        }
    };*/
}
